class AddFullDataProviderName < ActiveRecord::Migration
  def self.up
    #add_column :data_providers, :full_name, :string
    noaa_dp = DataProvider.find_by_name("NOAA")
    if(noaa_dp)
      noaa_dp.full_name = "National Oceanic and Atmospheric Administration"
      noaa_dp.save
    end
    hpp_dp = DataProvider.find_by_name("HarmfulPlanktonProject")
    if(hpp_dp)
      hpp_dp.full_name = "Harmful Plankton Project"
      hpp_dp.save
    end
    ioc_dp = DataProvider.find_by_name("IOCRefList")
    if(ioc_dp)
      ioc_dp.full_name = "IOC Taxonomic Reference List of Toxic Plankton Algae"
      ioc_dp.save
    end
  end

  def self.down
    #remove_column :data_providers, :full_name
  end
end
